import service from './service'
export default {
    /**
     * 定义合同号码段 
     * */
    // 查询合同号码段列表
    numberRuleList(params) {
        return service.post('/contract-client-web/contractNumberRule/numberRuleList', params);
    },
    // 新增合同号码段
    addNumberRule(params) {
        return service.post('/contract-client-web/contractNumberRule/addNumberRule', params);
    },
    // 编辑合同号码段
    editNumberRule(params) {
        return service.post('/contract-client-web/contractNumberRule/editNumberRule', params);
    },
    // 合同号码段详情
    numberRuleDetail(params) {
        return service.post('/contract-client-web/contractNumberRule/numberRuleDetail', params);
    },
    // 合同号码段状态编辑--启用/禁用
    changeNumberRuleState(params) {
        return service.post('/contract-client-web/contractNumberRule/changeNumberRuleState', params);
    },
    // 合同号码段操作日志
    queryNumberRuleRecord(params) {
        return service.post('/contract-client-web/contractNumberRule/queryNumberRuleRecord', params);
    },
    /**
     * 合同签章
     * */
    // 合同签章列表查询
    queryContractFormSignatureData(params) {
        return service.post('/contract-client-web/contract/signature/queryContractFormSignatureData', params);
    },
    // 确认签章
    updateContractSignature(params) {
        return service.post('/contract-client-web/contract/signature/updateContractSignature', params);
    },
    // 合同签章操作记录
    queryContractSignatureRecordData(params) {
        return service.post('/contract-client-web/contract/signature/queryContractSignatureRecordData', params);
    },
    // 合同签章弹框数据
    queryConfirmSignatureBeforeData(params) {
        return service.post('/contract-client-web/contract/signature/queryConfirmSignatureBeforeData', params);
    },
    /**
     * 合同冻结
     * */
    // 合同冻结列表查询
    queryContractFormFreezeData(params) {
        return service.post('/contract-client-web/contract/freeze/queryContractFormFreezeData', params);
    },
    // 冻结/取消冻结
    updateContractFreezeState(params) {
        return service.post('/contract-client-web/contract/freeze/updateContractFreezeState', params);
    },
    // 合同冻结操作记录
    queryContractFormFreezeRecordData(params) {
        return service.post('/contract-client-web/contract/freeze/queryContractFormFreezeRecordData', params);
    },
    /**
     * 定义模板
     * */
    // 定义模板-列表
    templateDefinitionList(params) {
        return service.post('/contract-client-web/templateDefinition/list', params);
    },
    // 定义模板-禁启用
    changeState(params) {
        return service.post('/contract-client-web/templateDefinition/changeState', params);
    },
    // 定义模板-操作日志
    recordsList(params) {
        return service.post('/contract-client-web/templateDefinition/recordsList', params);
    },
    // 定义模板-选择模板类型
    queryTemplateType(params) {
        return service.post('/contract-client-web/templateDefinition/queryTemplateType', params);
    },
    // 定义模板-主合同模板定义列表
    queryAllMainContractTemplateDefinitionDto(params) {
        return service.post('/contract-client-web/templateDefinition/queryAllMainContractTemplateDefinitionDto', params);
    },
    // 定义模板-查询合同号码段规则
    queryNumberRuleList(params) {
        return service.post('/contract-client-web/contractNumberRule/queryNumberRuleList', params);
    },
    // 定义模板-查询签章规则
    querySignatureRuleList(params) {
        return service.post('/contract-client-web/contract/signatureRule/querySignatureRuleList', params);
    },
    // 定义模板-抬头信息设置
    headerConfig(params) {
        return service.post('/contract-client-web/templateDefinition/headerConfig', params);
    },
    // 定义模板-抬头信息回显
    headerConfigInfo(params) {
        return service.post('/contract-client-web/templateDefinition/headerConfigInfo', params);
    },
    // 定义模板-项目明细设置回显
    projectDetailConfigInfo(params) {
        return service.post('/contract-client-web/templateDefinition/projectDetailConfigInfo', params);
    },
    // 定义模板-项目明细设置
    projectDetailConfig(params) {
        return service.post('/contract-client-web/templateDefinition/projectDetailConfig', params);
    },
    // 查询产品，费用，计费方式（共用）
    projectSelect(params) {
        return service.post('/contract-client-web/templateDefinition/projectSelect', params);
    },
    // 查询费用
    queryCostCfgByQueryEvent(params) {
        return service.post(process.env.VUE_APP_BASE_Z_API + '/saas-price-admin-web/price/manage/queryCostCfgByQueryEvent', params);
    },
    // 项目明细模板-项目明细回显
    projectAdd(params) {
        return service.post('/contract-client-web/templateDefinition/projectAdd', params);
    },
    // wms-项目明细回显
    projectAttribute(params) {
        return service.post('/contract-client-web/contract/projectAttribute', params);
    },
    // 合同新增 - 选择产品后弹框中的参数（添加/修改回显）
    contractFormProjectAdd(params) {
        return service.post('/contract-client-web/contractCreate/contractFormProjectAdd', params);
    },
    // 定义模板-新增
    templateDefinitionAdd(params) {
        return service.post('/contract-client-web/templateDefinition/add', params);
    },
    // 定义模板-修改
    templateDefinitionEdit(params) {
        return service.post('/contract-client-web/templateDefinition/edit', params);
    },
    // 定义模板-详情
    templateDefinitionDetail(params) {
        return service.post('/contract-client-web/templateDefinition/detail', params);
    },
    // 定义模板-条件设置-查询可选的业务要素列表
    queryTemplateDefinitionRuleFieldList(params) {
        return service.post('/contract-client-web/templateDefinition/queryTemplateDefinitionRuleFieldList', params);
    },
    // 定义模板-校验条件规则是否合法
    checkTemplateDefinitionRuleText(params) {
        return service.post('/contract-client-web/templateDefinition/checkTemplateDefinitionRuleText', params);
    },
    /**
     * 定义签章规则
     * */
    // 定义签章规则-列表
    queryContractSignatureRuleList(params) {
        return service.post('/contract-client-web/contract/signatureRule/queryContractSignatureRuleList', params);
    },
    // 定义签章规则-修改状态
    updateContractSignatureRuleState(params) {
        return service.post('/contract-client-web/contract/signatureRule/updateContractSignatureRuleState', params);
    },
    // 定义签章规则-新增
    addContractSignatureRule(params) {
        return service.post('/contract-client-web/contract/signatureRule/addContractSignatureRule', params);
    },
    // 定义签章规则-修改
    updateContractSignatureRule(params) {
        return service.post('/contract-client-web/contract/signatureRule/updateContractSignatureRule', params);
    },
    // 定义签章规则-详情
    queryContractSignatureRuleDetail(params) {
        return service.post('/contract-client-web/contract/signatureRule/queryContractSignatureRuleDetail', params);
    },
    // 定义签章规则-操作日志
    queryContractSignatureRuleRecordsList(params) {
        return service.post('/contract-client-web/contract/signatureRule/queryContractSignatureRuleRecordsList', params);
    },
    // 定义签章规则-查询租户是否有电子签权限
    checkTenantEsignAuth(params) {
        return service.post('/contract-client-web/contract/signatureRule/checkTenantEsignAuth', params);
    },
    // 定义签章规则-查询用户名下未冻结审核通过的电签文本模板
    queryTenantTextTemplates(params) {
        return service.post('/contract-client-web/contract/signatureRule/queryTenantTextTemplates', params);
    },
    // 下载电签文本模板
    previewContractPdf(params) {
        return service.post('/contract-client-web/signatureContract/previewContractPdf', params);
    },
    /**
     * 定义合同类型
     */
    // 定义合同类型-查询定义模板列表
    queryTemplateTypePage(params) {
        return service.post('/contract-client-web/contractCategory/queryTemplateTypePage', params);
    },
    // 定义合同类型-查询合同分类树
    queryContractCategoryTree(params) {
        return service.post('/contract-client-web/contractCategory/queryContractCategoryTree', params);
    },
    // 定义合同类型-创建合同分类
    createContractCategory(params) {
        return service.post('/contract-client-web/contractCategory/createContractCategory', params);
    },
    // 定义合同类型-修改合同分类
    modifyContractCategory(params) {
        return service.post('/contract-client-web/contractCategory/modifyContractCategory', params);
    },
    // 定义合同类型-查询合同分类详情
    queryContractCategory(params) {
        return service.post('/contract-client-web/contractCategory/queryContractCategory', params);
    },
    // 定义合同类型-启用或禁用合同分类
    enableOrDisableContractCategory(params) {
        return service.post('/contract-client-web/contractCategory/enableOrDisableContractCategory', params);
    },
    // 定义合同类型-分页查询操作记录
    queryContractCategoryRecordPage(params) {
        return service.post('/contract-client-web/contractCategory/queryContractCategoryRecordPage', params);
    },
    // 定义合同类型-查询合同分类列表
    queryContractCategoryList(params) {
        return service.post('/contract-client-web/contractCategory/queryContractCategoryList', params);
    },
}